/*
 * @Author: your name
 * @Date: 2021-03-23 15:08:39
 * @LastEditTime: 2021-04-02 17:04:54
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \shop\training-group-5-warehouse\dianshang\src\main.js
 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import mock from "./mock";

// vant UI
import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);

//  svg icon 图标
import "./icons";

//  rem 根元素设置字体大小
import "@js/htmlFontSize.js";

// 防止300ms 点击延迟
import fastClick from "fastclick";
fastClick.attach(document.body);

// 全局挂载api
import api from "./api";
Vue.prototype.$api = api;

// 全局挂载视频播放组件包video.js
import Videojs from "video.js";
import "video.js/dist/video-js.css";
Vue.prototype.$video = Videojs;

//  全局组件
// 头部
import Header from "@c/Header.vue";
Vue.component("Header", Header);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  mock,
  render: (h) => h(App),
}).$mount("#app");
